package com.ygswglxt.leave.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("leave_balance_log")
public class LeaveBalanceLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String leaveType; // ANNUAL, SICK, PERSONAL, ADJUSTMENT
    private String changeType; // INCREASE, DECREASE, SET
    private BigDecimal amount; // 变更数量
    private BigDecimal balanceBefore; // 变更前余额
    private BigDecimal balanceAfter; // 变更后余额
    private String reason; // 变更原因
    private Long operatorId; // 操作人ID
    private Long relatedLeaveId; // 关联的请假记录ID
    private Date createTime;
}

